babl: use floating point version of srgb trc func
authorØyvind Kolås <pippin@gimp.org>
Thu, 31 Aug 2017 15:27:20 +0000 (17:27 +0200)
committerØyvind Kolås <pippin@gimp.org>
Thu, 31 Aug 2017 15:27:20 +0000 (17:27 +0200)
babl/babl-trc.c

index 29c56db91051d8ac94d092a2913c0dfab48765aa..9275cb69b408631a7e407bebf8e0703fcfc75024 100644 (file)
@@ -470,7 +470,7 @@ static inline float _babl_trc_gamma_2_2_from_linear (const Babl *trc_, float x)
 
 static inline float _babl_trc_srgb_to_linear (const Babl *trc_, float value)
 {
-  return babl_gamma_2_2_to_linear (value);
+  return babl_gamma_2_2_to_linearf (value);
 }
 
 static inline float _babl_trc_srgb_from_linear (const Babl *trc_, float value)